home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1783 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  989 b 

  1. Path: iway.fr!usenet
  2. From: bertrand flahault <bflahaut@pratique.fr@pratique.fr>
  3. Newsgroups: comp.lang.c++
  4. Subject: BC++ OS2 - sending a WS_DISABLED to a TEdit
  5. Date: 12 Jan 1996 23:45:25 GMT
  6. Organization: Internet Way
  7. Message-ID: <4d6rql$cd2@s3.iway.fr>
  8. NNTP-Posting-Host: ts1-p22.dialup.iway.fr
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1I [fr] (Windows; I; 16bit)
  13.  
  14. Hello,
  15.    Using RW, I'm creating a dialog in which I put a TEdit object
  16. which I disable (WS_DISABLED).
  17.  
  18.    In my TMyDialog class I declare a TEdit pointer :
  19. TEdit *ptrMyTEdit;
  20.  
  21. and in the constructor I do :
  22. ptrMyTEdit=new TEdit(this, EF_TEST, 8);
  23.  
  24. the field is well created but I would like to be able to enable 
  25. this field.
  26. I tried
  27. ptrMyTEdit->Attr.Style &=~WS_DISABLED and things like that but it 
  28. does not seem to work.
  29. Thanks if you can help.
  30. My address is 
  31. bflahaut@pratique.fr
  32. Ciao
  33. Bertrand
  34. P.S.: Didn't remember my english was that bad...sorry
  35.  
  36.